Filename extension | .wav |
---|---|
Internet media type | audio/vnd.wave,[1] audio/wav, audio/wave, audio/x-wav[2] |
Type code | WAVE |
Uniform Type Identifier | com.microsoft.waveform-audio |
Developed by | Microsoft & IBM |
Initial release | 1991[3] |
Latest release | Multiple Channel Audio Data and WAVE Files / 7 March 2007[4][5] | (update)
Type of format | audio file format, container format |
Extended from | RIFF |
Extended to | BWF, RF64 |
Waveform Audio File Format (WAVE, or more commonly known as WAV due to its filename extension),[3][6][7][8] (also, but rarely, named, Audio for Windows[9]) is a Microsoft and IBM audio file format standard for storing an audio bitstream on PCs. It is an application of the RIFF bitstream format method for storing data in "chunks", and thus is also close to the 8SVX and the AIFF format used on Amiga and Macintosh computers, respectively. It is the main format used on Windows systems for raw and typically uncompressed audio. The usual bitstream encoding is the linear pulse-code modulation (LPCM) format.
Contents |
Both WAVs and AIFFs are compatible with Windows, Macintosh, and Linux operating systems. The format takes into account some differences of the Intel CPU such as little-endian byte order. The RIFF format acts as a "wrapper" for various audio compression codecs.
Though a WAV file can hold compressed audio, the most common WAV format contains uncompressed audio in the linear pulse code modulation (LPCM) format. The standard audio file format for CDs, for example, is LPCM-encoded, containing two channels of 44,100 samples per second, 16 bits per sample. Since LPCM uses an uncompressed storage method which keeps all the samples of an audio track, professional users or audio experts may use the WAV format for maximum audio quality. WAV audio can also be edited and manipulated with relative ease using software. The WAV format supports compressed audio, using, on Windows, the Audio Compression Manager. Any ACM codec can be used to compress a WAV file. The user interface (UI) for Audio Compression Manager may be accessed through various programs that use it, including Sound Recorder in some versions of Windows.
Beginning with Windows 2000, a WAVE_FORMAT_EXTENSIBLE
header was defined which specifies multiple audio channel data along with speaker positions, eliminates ambiguity regarding sample types and container sizes in the standard WAV format and supports defining custom extensions to the format chunk.[4][5][10]
There are some inconsistencies in the WAV format: for example, 8-bit data is unsigned while 16-bit data is signed, and many chunks duplicate information found in other chunks.
WAV files can contain embedded IFF "lists", which can contain several "sub-chunks".[11][12][13]
As a derivative of the Resource Interchange File Format (RIFF), WAV files can be tagged with metadata in the INFO chunk. In addition, WAV files can embed Extensible Metadata Platform (XMP) data. Applications may not handle this extra information or may expect to see it in a particular place. Although the RIFF specification requires applications ignore chunks they do not recognize, some applications are confused by additional chunks.
Uncompressed WAV files are large, so file sharing of WAV files over the Internet has declined in popularity. However, it is still a commonly used file type, suitable for retaining "first generation" archived files of high quality, for use on a system where disk space is not a constraint, or in applications such as audio editing, where the time involved in compressing and uncompressing data is a concern.
More frequently, the smaller file sizes of compressed but lossy formats such as Ogg Vorbis, MP3, ATRAC, AAC, Musepack and WMA are used to store and transfer audio. Their small file sizes allow faster Internet transmission, as well as lower consumption of space on memory media. However, lossy formats trade off smaller file size against loss of audio quality, as all such compression algorithms compromise available signal detail. There are also lossless codecs, such as FLAC, Shorten, Monkey's Audio, ATRAC Advanced Lossless, Apple Lossless, WMA Lossless, TTA, and WavPack, but none of these is yet a ubiquitous standard for either professional or home audio.
The usage of the WAV format has more to do with its familiarity, its simplicity and simple structure, which is heavily based on the RIFF file format. Because of this, it continues to enjoy widespread use with a variety of software applications, often functioning as a 'lowest common denominator' when it comes to exchanging sound files among different programs.
In spite of their large size, uncompressed WAV (though that format can be different from the Microsoft WAV) files are sometimes used by some radio broadcasters, especially those that have adopted the tapeless system. BBC Radio in the UK uses 44.1 kHz 16-bit two-channel .wav audio as standard in their VCS system. A phased migration to 48 kHz sample rate has been announced[1]. BBC English Regions already uses 48 kHz.
The WAV format is limited to files that are less than 4 GB, because of its use of a 32-bit unsigned integer to record the file size header (some programs limit the file size to 2–4 GB).[14] Although this is equivalent to about 6.8 hours of CD-quality audio (44.1 kHz, 16-bit stereo), it is sometimes necessary to exceed this limit, especially when greater sampling rates or bit resolutions are required. The W64 format was therefore created for use in Sound Forge. Its 64-bit header allows for much longer recording times. The RF64 format specified by the European Broadcasting Union has also been created to solve this problem.
Unlike formats like FLAC, WAV files don't usually have information fields, for instance, in the case of a song, title, artist, album, year, etc.[15]
Since the sampling rate of a WAV file can vary from 1 Hz to 4.3 GHz, and the number of channels can be as high as 65536, .wav files have also been used for non-audio data. LTspice, for instance, can store multiple circuit trace waveforms in separate channels, at any appropriate sampling rate, with the full-scale range representing ±1 V or A rather than a sound pressure.[16]
Audio CDs do not use WAV as their sound format, using instead Red Book audio. The commonality is that both audio CDs and WAV files have the audio data encoded in PCM. WAV is a data file format for a computer to use that cannot be understood by CD players directly. To record WAV files to an Audio CD the file headers must be stripped and the remaining PCM data written directly to the disc as individual tracks with zero-padding added to match the CD's sector size. In order for a WAV file to be able to be burned to a CD with most burners it should be in the 44100 Hz, 16-bit stereo format.
As mentioned wav
files can be encoded with a variety of codecs to reduce the file size (for example the GSM or MP3 codecs).
This is a reference to compare the monophonic (not stereophonic) audio quality and compression bitrates of the different codecs available for .wav
files including PCM, ADPCM, Microsoft GSM 06.10, CELP, SBC, Truespeech and MPEG Layer-3.
Format | Bitrate | 1 Minute = | Sample |
---|---|---|---|
11,025 Hz 16 bit PCM | 176.4 kbit/s[17] | 1292 KB[18] | 11k16bitpcm.wav |
8,000 Hz 16 bit PCM | 128 kbit/s | 938 KB | 8k16bitpcm.wav |
11,025 Hz 8 bit PCM | 88.2 kbit/s | 646 KB | 11k8bitpcm.wav |
11,025 Hz µ-Law | 88.2 kbit/s | 646 KB | 11kulaw.wav |
8,000 Hz 8 bit PCM | 64 kbit/s | 469 KB | 8k8bitpcm.wav |
8,000 Hz µ-Law | 64 kbit/s | 469 KB | 8kulaw.wav |
11,025 Hz 4 bit ADPCM | 44.1 kbit/s | 323 KB | 11kadpcm.wav |
8,000 Hz 4 bit ADPCM | 32 kbit/s | 234 KB | 8kadpcm.wav |
11,025 Hz Microsoft GSM 06.10 | 18 kbit/s | 132 KB | 11kgsm.wav |
MP3 16 kbit/s | 8,000 Hz16 kbit/s | 117 KB | 8kmp316.wav |
8,000 Hz GSM6.10 | 13 kbit/s | 103 KB | 8kgsm.wav |
Lernout & Hauspie SBC 12 kbit/s | 8,000 Hz12.0 kbit/s | 88 KB | 8ksbc12.wav |
DSP Group Truespeech | 8,000 Hz9 kbit/s | 66 KB | 8ktruespeech.wav |
8,000 Hz Mp3 8 kbit/s | 8 kbit/s | 60 KB | 8kmp38.wav |
Lernout & Hauspie CELP | 8,000 Hz4.8 kbit/s | 35 KB | 8kcelp.wav |
The above are WAV files; even those that use the MP3 codec have the ".wav
" extension.
|